package com.ctvit.breadking.news.core.solr.function;

import org.apache.solr.client.solrj.SolrServerException;

import java.io.IOException;

/**
 * 自定义 Function
 *
 * @author heyingcheng
 * @date 2024/10/2
 */
@FunctionalInterface
public interface Function<T, R> {

    /**
     *
     * @param t
     * @return {@link R}
     * @throws SolrServerException
     * @throws IOException
     */
    R apply(T t) throws SolrServerException, IOException;

}
